<?php
$id = $_GET['id'];
require('../query_db.php');
$sql = "DELETE FROM message_bord WHERE message_id  = '$id'";
if(mysqli_query($conn,$sql)){
    echo "<script>alert('删除成功');location.href='admin_index.php';</script>";
}else{
    echo "<script>alert('删除失败');location.href='admin_index.php';</script>";
    echo mysqli_error($conn);
}
mysqli_close($conn);
?>